package com.pignest.hotel.ui.income;

import java.util.List;

import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Window;

import com.pignest.hotel.beans.Living;

public abstract class BaseCheckOutWindow extends Window implements EventListener {
	private static final long serialVersionUID = 4554363384245503921L;
	protected List<Living> selectLive;//选择的入住
	protected boolean success;
	
	public BaseCheckOutWindow() {
		addEventListener("onCreate", this);
	}
	
	public boolean isSuccess() {
		return success;
	}
	
	protected abstract void onCreate();
	
	public abstract void checkOut();
	
	@Override
	public void onEvent(Event event) throws Exception {
		if ("onCreate".equals(event.getName())) {
			onCreate();
		}
	}
	public List<Living> getSelectLive() {
		return selectLive;
	}
	public void setSelectLive(List<Living> selectLive) {
		this.selectLive = selectLive;
	}
}
